#+_+ coding:utf-8 +_+

class Message(object):
    pass

class XMLMessage(Message):
    attrs = dict()
    def Init(self,rootTag):
        for childTag in rootTag:
            self.attrs[childTag.tag] = childTag.text
    def dump(self):
        return str(attrs)
    
    def respond(self):
        return str(None)


class JSONMessage(Message):
    pass
